package com.sixth.service;

import com.sixth.entity.Role;
import com.sixth.util.CommonResult;
import com.sixth.util.TableLayUi;

public interface RoleService {

    TableLayUi findRoleByPage(int page, int limit);
    //修改或者增加
    CommonResult addOrUpdate(Role role);
    //根据id删除
    CommonResult delById(Integer roleid);
    //只能有一个名字，否则名字重复
    CommonResult getOneRole(String  rolename);

    //员工信息中下拉框查询
    CommonResult SelectAll();
}
